public class PolyExampole {
    public static void main(String[] args) {
        Animal myDog1=new Dog1();
        Animal myCat1=new Cat1();
        myDog1.makeSound();
        myCat1.makeSound();
        Animal[] animals={new Dog1(),new Cat1(),new Animal()};
        for (Animal animal:animals){
            animal.makeSound();
        }

    }
}
